package com.ruoyi.loan.loan.mapper;

import com.ruoyi.loan.loan.domain.TbLoan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 86176
* @description 针对表【tb_loan(借款表)】的数据库操作Mapper
* @createDate 2023-01-14 12:35:01
* @Entity com.ruoyi.loan.loan.domain.TbLoan
*/
public interface TbLoanMapper extends BaseMapper<TbLoan> {
    /**
     * 查询借款
     *
     * @param loanId 借款主键
     * @return 借款
     */
    public TbLoan selectTbLoanByLoanId(Long loanId);

    /**
     * 查询借款列表
     *
     * @param tbLoan 借款
     * @return 借款集合
     */
    public List<TbLoan> selectTbLoanList(TbLoan tbLoan);

    /**
     * 新增借款
     *
     * @param tbLoan 借款
     * @return 结果
     */
    public int insertTbLoan(TbLoan tbLoan);

    /**
     * 修改借款
     *
     * @param tbLoan 借款
     * @return 结果
     */
    public int updateTbLoan(TbLoan tbLoan);

    /**
     * 删除借款
     *
     * @param loanId 借款主键
     * @return 结果
     */
    public int deleteTbLoanByLoanId(Long loanId);

    /**
     * 批量删除借款
     *
     * @param loanIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbLoanByLoanIds(Long[] loanIds);
}




